Solve out case-alias typedefs automatically