Make idlharness.js support typedef. r=zcorpan