full iteration on JTerm/JRef management related code.