Fix topo-type determination in Topography.write