Force change on becomes for STI instances, Fixes #14785

For STI models, after there is a becomes!, the record becomes
unreachable because it has the wrong type for the class it has
been cast to.

This change updates the type attribute as part of the conversion,
so the model can continue to be reached.