Use copyArray, not [].concat (which doesn't even work) on arguments