Residual trapped-ion instabilities in tokamaks