bsongen: []byte support
bson: Plan B on encoding of QueryResult

Switching the types back to uint64, and encoding
to encode as unsigned instead of the other way round.
Merge branch 'bson'