Fixed bug in type checker when tuple type contained null
Fixed bug in tuple removal pass