Raise a nice error when serializing invalid keys.

This will get raised on all objects except for string and symbol.

https://jira.mongodb.org/browse/RUBY-752