Fixed #23560 -- Fixed MigrationWrite to handle builtin types without imp...

...orts.
this line is very hard to read