I'm running 7.1, and I've found the bug:
"apm_upgrade_script_compare" had two different queries, both of which were named "test", so the query dispatcher happily went and used the same query twice, and "apm_upgrade_script_compare" would always return 1 (for some reason, not sure why 1).
There may be other problems, I don't know.
I'll be committing once I've run a few more tests.
/Lars