EJSON: Add tests for custom types
EJSON: Fix asymmetry in equals
EJSON: Provide default implementation of clone for custom types
EJSON: Provide default implementation of equals for custom types