bugfix: changed semantics of lua_openX calls