Fixing a bug in which a cached input array would later on clobber a users array.