unfactor: Turn a factor back into a vector of integers
Description
Factors store values as integers and use a 'levels' attribute to
map the integers to labels. This function removes the 'factor'
class and levels attribute, leaving the vector of integers.