Replaces type variable with complete custom representation