search Template.foo namespace for components

fix inheritance superClass tracking