fix Issue 9656 - Built-in dup result should behave as like unique array, if it is possible