Added getArrayValue to Query object

Change-Id: I7b7cf5e5766f851f1c82e22cb25bbd5283da675f