sanitize TPatMatch (closes #1929)
ECheckType adjustments
add message and pos to Fatal_error
add Context.fatalError (closes #1936)