User and image arrays are now objects

Also fixes #28 (see f968e10 and 43f0fb1).