Convert StrongParameters cache to a hash. This fixes an unbounded memory leak

demonstrated on @tenderlove's latest blog post:

http://tenderlovemaking.com/2014/06/02/yagni-methods-are-killing-me.html
But it did not cover enough, I've added a new test in f712f89961b64b61064d99d33dbbfd1903b189d4.