Added extended-integer support, which fixes #653 (the main part; the secondary part is split off as #1225)