ATen is presently has no const modifiers, even for methods which are obviously const (e.g. `virtual bool isCuda()` in Type). Make it more const-correct.