mkapidocs.py: delegate type printing to the visitors