loci: dump/show correct subclass for embedded objects

The code was previously calling the dump/show function for the header class,
which wouldn't have output any of the fields added by the child classes.
diff --git a/c_gen/c_dump_gen.py b/c_gen/c_dump_gen.py
index a9074af..6a9b8f8 100644
--- a/c_gen/c_dump_gen.py
+++ b/c_gen/c_dump_gen.py
@@ -184,7 +184,7 @@
                     sub_cls = m_type[:-2] # Trim _t
                     out.write("""
     %(cls)s_%(m_name)s_bind(obj, &%(v_name)s);
-    out += %(sub_cls)s_%(ver_name)s_dump(writer, cookie, &%(v_name)s);
+    out += of_object_dump(writer, cookie, &%(v_name)s);
 """ % dict(cls=cls, sub_cls=sub_cls, m_name=m_name,
            v_name=var_name_map(m_type), ver_name=ver_name))