java_gen: small improvements to gen_table/tlv extensions

 - move bsntlv classes to dedicated package/factory
 - change type of of_bsn_tlv_vlan_vid to VlanVid
 - change type of tableId to new typesafe constant GenTableId
diff --git a/loxi_utils/loxi_utils.py b/loxi_utils/loxi_utils.py
index 5d725a5..865891f 100644
--- a/loxi_utils/loxi_utils.py
+++ b/loxi_utils/loxi_utils.py
@@ -157,6 +157,9 @@
     """
     return (cls.find("of_list_") == 0)
 
+def class_is(cls, cand_name):
+    return _unified_by_name(cls).is_instanceof(cand_name)
+
 def type_is_of_object(m_type):
     """
     Return True if m_type is an OF object type