Implement support for TVs (thanks @isaacniebeling)
Cleanup some use statements
Move category-as-string handling in extract to objectToArray method