added a better array merge and unique tool because it was breaking on some arrays