Fix for #256 and #304 - add proper object equality check in editor.setProperty