Allow Lua bridge to convert between LuaTable and arrays.

This removes some of the pain from writing new API methods, and gives more specific type information in the generated docs.