mkapidocs.py: support type on typedefs