EJSON: Provide default implementation of clone for custom types
EJSON: Provide default implementation of equals for custom types