This version of SASyLF fixes unsoundnesses in unification and context adaptation. It also removes limitations on pattern matching with contexts: previously derivations with more than one variable and terms with any variables could not be subject to case analysis. Internally, the case analysis code was almost totally rewritten.