Adding cases of 'cast' instructions in optimizations

This patch adds cases of "cast" instructions in functions "lCheckForActualPointer", "lGetBasePointer",
expands case of "sext" instruction to all cast instructions in functions "lExtractConstantOffset", "lExtractOffsetVector248Scale" and changes test "ptr-int-1.ispc" to more recommended variant.