mkapidocs.py: support adding member items to the scope chain