Corrects line numbers for symbol table.

Symbols are now added to scope with the correct line
numbers more often, so the duplicate detection logic
now works correctly.

However, inheritance does not work correctly in this version;
collectionPrelude, which has multiple instances of inheriting
from a trait method, breaks it, for example.