big update of HOTerm, with records, multisets, and curried-only application