Recent slaying cases highlight the complexities of a 1997 law meant to keep mentally ill juveniles from being held in detention centers where they can't get proper treatment.