Fix: Move to QVariant v2 api.

I *think* I found all the toInt and toString old-style calls. All tests pass, at least, but they don't cover all the cases.