reimplement (deprecated) GetShipType and GetShipTypes in Lua