slightly better UDTT syncing algo

syncing only the types that are actually used.