Fix wrong PG_RETURN and missed declarations in gin triconsistent.