Allow var defs to infer type from right-hand side.

Found by golint.