Fix error in OTML casting from Lua, may fix #198