Add Driver::getType() and port over code from the Type class
Optimization