Fix JsonCodec when re-encoding a decoded Map which originally contained a Long value