Type alias cannot have reserved type name (#1030)

Fixes #1030.