ArrayUtils improvements