Fix parsing of formal type parameters