Fix parsing of type chains