restore original package.json
Add an option for keys to be stored multiple times

By default this option is off, to maintain backwards comptability.
Provide some test cases to test both modes of operation
Rename option to allow_repeat_keys

Also, while we're at it, clean up the tests a bit, and assert balance in
a bunch of places we weren't doing so before.
for our branch, this package.json