fix(compile): ensure parent controllers are exposed within the scope of their children

Closes #602