docs: def chpl_type_name(self):
          """Returns iterator or method or '' depending on object type."""
          if not self.objtype.endswith('method'):
              return ''
          elif self.objtype.startswith('iter'):
              return 'iterator'
          elif self.objtype == 'method':
              return 'method'
          else:
              return ''