JavaFactory support: Don't use hasOwnProperty().
JavaFactory support: Don't use hasOwnProperty().

Otherwise properties that put a factory on javaFactory will not be
serialized.

Instead we don't serialize if javaFactory is falsey, which seems to
cover every case where we don't want it serialized.  An empty factory
wouldn't compile anyways as it has to return a value.

jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2