fix embarassing crashes, make lua_array non-POD to prevent this from happening again.