[java/cs] TVar is not typed as Void: Make a special case for it. Closes #3185