Fixing spacing bug between array type cast and ST_REFERENCE