Allow duplicate keys

Fixes #57