Some work towards refactoring code that loads/saves QList<int> settings (#282).