Revert "Replace inject with each_with_object"

This reverts commit e014cbaa60bd0656120a9c216c0faae238553548.
Looks like Ruby 1.8.7 and REE don't like it.