I have exactly the same issue with TU 5.1.0. I found a workaround by uninstalling the latest version of the Gmail app and reverting to the previous version. Now TU unread badges work correctly again on the Gmail app (and all the other apps).
Go to Settings - Apps - Gmail and under App Info...