Implemented better support for exposing arrays to JS (using QScriptClass).