Added element_extension_t class, element_t is now derived from element_extension_t, fixed bug (query_element_id_tag always used vertex_tag)