Fixed TQuery toArray incompatibility

Signed-off-by: Tom Wright <tom@inflatablecookie.com>