added NaN test for to_var
added NaN test for transpose