Performance tweaks for Array, Dictionary, and Set

I'd have done the same for OrderedSet and and MapTable, but I didn't
know they existed yet...

For perf improvements, see here: https://gist.github.com/jballanc/5748205