Moved cast-type to separate function.
Created extension to regular factors which can use non-contiguous IDs. Will later extend to support non-character levels.
Merge branch 'RefClass'
Merge branch 'master' of github.com:QBRC/RODProt