Implement persistence of BaseTerm.