more tolerant parsing of type alias syntax and error code