Move BSON encode/decode stuff into BSON namespace

BSON\toArray()
BSON\toJSON()
BSON\fromArray()
BSON\fromJSON()