Fixed has_many association to make it support irregular inflections.

Cherry-picked https://github.com/rails/rails/pull/9702 + added regression tests for it.
Also added a Changelog.

fixes #8928.