FactoryInstanceMaker works when constructors have primitive arguments