Add dtype arg to zeros_like method of tensor vars

Duplicate of gh-1247, to see if that one would merge.