move reg_ definitions to the common defines file, small tweaks
cache name and typeinfo stuff in bsonparser
the category is now explained through bson, dll ae80c26