Fixed bug when doc() functions where used twice; enabled :py:class: entries for types; unified display of types.