Reordered toArray calls because older browsers allow for mutation of the arguments object
Removed function name checks from tests because IE is brain-damaged