Make ShipType.cpp use LuaTable

As I'm sure other areas of the code have, ShipType defined its own helper functions to get stuff from a Lua table. This PR gets rid of them and uses LuaTable instead.

I had to extend it to support vector3d, and I made some minor modifications to the LuaObject handling.