Fix $apply and change binding for switch-active

Updated the binding type for switch-active, and remove the check (var || true).
Also put back the $apply, but he is only triggering when you are not inside a digest cycle.