Expand BSON support

Fixes and expands BSON extensions to support Vector and Matrix classes
in addition to the Range class.

Use BSON.dump() to create a parseable byte string, and BSON.parse() to
interpret it.