Fix minor issues in line optimization.

I've also removed a comment that is no longer needed.

Issues were brought up in Gecko bug 974017.