Add trv_type_category to the vep interpreter

See AT-577
Or possibly [`state`](http://perldoc.perl.org/functions/state.html) variables.