Move Type::deduceWildHelper into a free funciton
Move Type::deduceTypeHelper into a free funciton
Move Type::deduceType into a visitor class
Merge pull request #3298 from yebblies/type

[DDMD] [refactor] Move Type::deduceType and friends into a visitor class/free functions