Move primitive_klass to vm.hh

Signed-off-by: Pekka Enberg <penberg@iki.fi>
vm: Make klass destructor virtual

It's used as a base class for primitive_klass.

Signed-off-by: Pekka Enberg <penberg@iki.fi>