Currently, an aggregation key must be a String. For example
aggregate :browsers do |b|
b.id # <= This gets automatically casted to a string by calling ".to_s"
end
It would be nice to allow for BSON::ObjectID or DateTime keys. However, this would not be possible without using Inheritance for the Aggregation class model. I can replace the :ns (namespace) field and use Inheritance instead (automatically using the :_type field).