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
Bump version to 2.2.4
Merge pull request #18 from mongodb/RUBY-752

Raise a nice error when serializing invalid keys.