Allow Lua bindings to convert to and from arrays.
Update Lua bindings to use array arguments.