Refactor code that looks at voted-on parameters during voting

The prop250 logic wants this, and I think I found a bug in the way we do it now. (legacy/trac#18363 (moved))

I have a branch params that isn't right and needs tweaking and tests.