Fixes $or operations on non object arrays

Fixes an issue that prevent normal query operations for $or against
arrays on non objects , like ['1','2','3']