Fixed a bug where ignore:line wasn't working with undef and unused.

Closes #1389
Closes #1518
Closes #1328