Add a test to demonstrate the problem.
Fold UnionTypeCaster into TypeResolver.
Update rules to not reference that.
Since the union got the project spliced out, need to get the types from where they were put instead.