Changed ArrayQueryReaderCommand to accept any Object subclass

Before it only worked with Integer.