NG directives: Allow functions to be defined for template/templateUrl and array notation in controller

There's not a more elegant solution that I know of until we get structs in TS anyway.