Increase default dictionary size, use more efficient dictionary algorithm.
Updated for Rails 4.0.
Renamed methods.