Set up to use dt_variable as a bool

This does the integer-to-bool conversion for the 3D code and the setrun files for the examples (just to make them more correct).