Make BSON::Document behave as a hash for 1.9