Fixing issue #108 - adding array fields support in 'distinct'

Fixing issue #108 - adding array fields support in 'distinct'