code: def to_type(f, type_map=CONSTRUCT_CODE):
    
    name = f.type_id
    if name.startswith('GPSTime'):
      name = 'Gps' + name[3:]
    if type_map.get(name, None):
      return type_map.get(name, None)
    elif name == 'array':
      fill = f.options['fill'].value
      f_ = copy.copy(f)
      f_.type_id = fill
      return "[%s]" % to_type(f_)
    return name
docs: Format a the proper type.