Integer#to_bson_cstring refactoring in preparation for C ext