added default print callback to command line tool
fixed constant replacement
avoid pushing table size on lua stack when lua_objlen is available