One really nasty problem is in the geometry.pkg file
CCPoint CCSize and CCRect are not derived from CCObject any more but are still described this way in the geometry file.
Correct this otherwise very strange things happen.
rect = CCMakeRect(1,2,3,4)
assert(tolua.type(rect) 'CCRect') is ok
size = rect.size
assert(tolua.type(rect) ‘CCRect’) fails because rect is now a CCPoint (don’t ask how it happen tolua++ is absolutely confused.)