Fix a crash on namedtuples
that use typename
#1773
Merged
namedtuples
that use typename
#1773