rehash() throws an exception when a property name is duplicated