BZ-1146836: fixed errors ordering columns:
- IndexOutOfBoundsException after ordering columns several times
- Error loading column order after table preferences are stored
Merge pull request #3 from pefernan/master

BZ-1146836: fixed errors ordering columns: