swap order of fields in pg_aggregate for alignment reasons