Fix an error where MigrationVersions would incorrectly fail to parse if
any of the version parts overflowed a long.