Do not report type resolving errors in instance creation twice.
Fix error in handling local scopes.

(Local names should not be allowed to be redefined
inside block scopes.)
Sort error messages by location before printing.