Fixed arrays being handled improperly; fixes #1.