Improve other error messages too.

Many error messages now include a summary about the variable involved in the
error: definition, available permissions.