Description
During of parsing or jcr:primaryType and jcr:mixinTypes properties their type (Name) is automatically inferred, so doesn't need to be specified.
And, as we also don't serialize that type property when no property override is specified a developer actually shouldn't specify the type for these properties otherwise and input/output no longer will align.
When encountering an override of one these properties however we currently do serialize the type (Name), which is non-consistent and really not needed as during parsing that type is still automatically inferred if not specified.
The fix is to also not serialize the type for these properties in case of an override.