added cache to inferred type task and made AttributeTypeLoader work as a standalone loader.