ObjectEncoder and ObjectDecoder changed to Compatible objects.