Simplify the handling of duplicate parameters

Yes, I went totally overboard. And added a runtime penalty
for something incredibly simple.

This simplified version should work fine, right?