Fix bug where local class ids would become incorrect.
Fix bug where local class ids would become incorrect.

galek/luabind-deboostified,Wohlhabend-Networks/luabind-deboostified,luabind/luabind,Oberon00/luabind,luabind/luabind,plsytj/luabind,ltjax/luabind-deboostified,grafi-tt/luabind,luabind/luabind,alex85k/luabind,luabind/luabind,mapbox/luabind,Kazade/luabind-deboostified,rpavlik/luabind,mdave88/luabind,davidar/luabind,Oberon00/luabind,rpavlik/luabind,rpavlik/luabind,MrApplejuice/luabind,decimad/luabind-deboostified,alex85k/luabind,alex85k/luabind,rpavlik/luabind,alex85k/luabind,rpavlik/luabind,lonski/luabind