Automatically convert from pgsql arrays to php native