(transforms) Move TypeResizer from backends to core

Goal is to allow use of TypeResizer in Simulator