Refactor template classes
  Remove VLocalInstance, VGlobalInstance and VBase
  Change VPrimitive