Added getArrayValue to SortOptions and QueryOptions

Change-Id: I21027d0ddf3aed2350b81f769568252974acd720