fix Component.lookup to work with DynamicTemplate changes