Switching to 3D-style interpretation of dt_variable

Switching to 3D style after gfortran complaint that assigning from a logical to an integer is an extension, not a standard language feature.