gaia: improve the support for non-J2000 catalogues