Fixed the union's method bug in array.js