Index line-wise decorations by ids

@nathansobo good call on comparing by id.

Fixes #2848 
![yuno](http://img3.wikia.nocookie.net/__cb20120321015041/theamazingworldofgumball/images/8/80/Angry-y-u-no-l.png)