Changed ArrayQueryReaderCommand to accept any Object subclass

Before it only worked with Integer.

Signed-off-by: Jonas Fagundes <jonas@jonasfagundes.com>