Make AgentTypeChecker aware of ReferenceTypes and push before ReferenceVisitor in MiddleEnd