Support array export (fixes #6), don't use reserved name, fixed problem ...

...with global regexp.

Automated tests are missing. Hadn't time to get into tinytest yet. I tested it manually in the console. Sorry, for committing the remove of the trailing spaces. My IDE does that automatically :D.