Avoid warning about deprecated g_type_init()
Fix crash with lua 5.2 and custom parsed callbacks

Do not assume that callable object is always at stack position 1; it
does not hold in newly introduced callback case. However, the bug
manifested only with Lua 5.2, for some reason, 5.1 was running fine.