changed name of $ydb_internal to be a valid js property #437
changed bson builder stuff around to do fewer mallocs #437