Correct detection of property name conflicts

should fixes #395