[SPARK-2395][SQL] Optimize common LIKE patterns.

This probably better be called as `RLikeSimplification`.