The SQL code uses array_agg with arrays which is only supported for Postgresql 9.5. We could provide a workaround but given that 9.3/9.4 are not tested at all there is a good chance that there are other problems. See #2394.