Add array/2 and :array type

:list type is deprecated.
list literals in queries are deprecated, use `array(list, type)` instead.