Fixed up numeric creation in ObjectFactory.