tidyied up the version detection for DataTypes

needed it to work past v6.0.0 into v7 and past 4.11 into 4.12+