Feature/fix mongo upsert

/to @ritch 

The PR fixes two issues encountered by the mongodb connector:

1. updateOrCreate incorrectly removed properties if the 'data' contains undefined values
2. id such as '123' was converted to number if the id type is ObjectID

The test case will be from a separate PR.