fixed bug of deep extend array

if input an array, return an object

G.extend(true,[],[1,2,3,4]) => {0: 1, 1: 2, 2: 3, 3: 4}