FactoryBase is now able to bind values with suitable types for having clause values