I like your idea of making the variable non-boolean. It makes sense, and we did not intend the dts to just be booleans. People are starting to really use the dts as we intended now.
Overall it's a good patch, modulo the fixes carl-daniel pointed out. Can you revise and resubmit?
ron