Support type alias

Fix #672.
I commented it out. Don't want to slow down debug build too much.