mkapidocs.py: store and print out the top-level compound items