Add duplicate key check for mappings (hashes)