Adds test file.

Attemps to understand whether outer is defiend or not, in the face
of conflicting error messages.
Fixes bad line number when import fails.

When an imported file fails to compile, the importing file
no longer shows a syntax error at line 1.