Add support for performing GVNPRE on cast instructions, and add a testcase for this.