fix Component.lookup to look at template heirarchy.