Some work towards refactoring code that loads/saves QList<int> settings (#282). Also, some minor cleaning up.