added decode_types (from type_infer.ML); decode sorts: internalize here; tuned;
added decode_types (from type_infer.ML);
decode sorts: internalize here;
tuned;

MerelyAPseudonym/isabelle,MerelyAPseudonym/isabelle,MerelyAPseudonym/isabelle,MerelyAPseudonym/isabelle,MerelyAPseudonym/isabelle,MerelyAPseudonym/isabelle