Litport168 - fix for #168 - lit as port breaks chisel. 

Replace assert() in removeTypeNodes() with ChiselError and add explicit test.