Add property filters to TextEditor::getDecorations methods

This makes it much easier to write tests that inspect the state of
decorations.