Allow for duplicate keys and ensure Mono compat.