Adding array support. (fixes #568)