Extend mpsEntityJSON to make toJSON/fromJSON for Entity a replaceable