Fixed interface for Lua 5.2

In the new version of Lua, typerror has been removed and lua_objlen has been replaced with lua_rawlen(L, (i)).

Also, none of Lua examples worked because of wrong comment prefix. Fixed this as well.

Fix for https://github.com/shogun-toolbox/shogun/issues/944