Made some minor improvements to ArrayUtils