Support type alias

Fix #672.
It's better to comment this out due to performance reasons.