modffi: Support short types.
gendoc.py: Support modules w/o functions and/or classes.

I.e. don't assume that both are always present.