Made select do more intelligent casting of constants.
Made select do more intelligent casting of constants.


Former-commit-id: a105eef5146956013e6bf496703903a5e9da12e5
darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide