Support type alias

Fix #672.
Ah, yes. So, it makes sence to add #if DEBUG.