add array handling for postgis adapter (crudely)