additions to Replicated and changed ReplicatedField to use Kryo