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

Even for `RLike` simplification, people may still prefer using the `Like` function other than `RLike` for `startsWith`, `endsWith` and `contain` in string matching.