Fix removeUndefined to bypass non-plain objects

traverse.map() transform custom objects such as Date or ObjectID into
plain objects and it breaks the BSON serialization
Merge pull request #32 from strongloop/fix-mongodb-failure

Fix removeUndefined to bypass non-plain objects