Added method and test for method Spektral.queryArray