Nested transclusion issues

This series of commits deals with a number of issues arising from the compiler not passing the correct transclusion functions and scopes down to children.

There are potentially still issues with ng-include and ng-switch when they are combined with isolated scopes.