Add line number to error message of -nogc switch.

This was suggested by bearophile in the news group.
It also changes all Loc objects to be passed by reference.
Merge pull request #660 from redstar/loc

Add line number to error message of -nogc switch.