refactor(booleanAttrs, ngSwitch): use link function instead of compile function where appropriate

Replace two compile functions that immediately return a post-link function with link function definitions instead.

Closes #5664