Vector array factory for Lua