Fix Issue #1593

The disableClassMetadata parameter destroys class names when set to true.
This breaks reflection as the class names don't match those that are
reflected.