added reference support to HyperSchemaFactory

fixed missing visitor context.