bugfix: returning assoc array causes object in JSON (bad - we want a plain array instead)