fix validation check for dupe field on null/undef existing value; make warning pluggable
additional tests for query editor: duplicate field, and complete schema acquisition chain