Basically the title, but in every direction and flavor:
An Ice type terastalizes to Steel: does it lose its defense buff from snow?
A water type terastalizes to Ice: does it now get a defense buff from snow?
A Rock type terrastalizes to Grass: does it lose its special defense buff from sand?
A Fairy type terastalizes to rock: does it gain a special defense buff from sand?