[x] improve error messages (previously they have been specialized to what kind of capture escaped "local variable ... escapes" instead of "captures {x} escapes ..."
Especially the worse error messages are frustrating. It would be great to look at the diff of this PR and see how we can get this kind of (or better) messages back.
This is an attempt at fixing #548
Create a proper context tracking which bindings (types and captures) are in scope and then run the wellformedness check on inferred types.
TODO: