(Backends) Extend the TypeResizer with cast removal in order to make it more flexible.