Add a Constant version of stripPointerCasts.

Thanks to rnk for the suggestion.