Simplied make_counted<const ql::datum_t> stuff to drop the const.
Removed "helpful" env_t functions like new_term, new_func, and such.