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

It's not simplifying RLIKE though... it is simplifying LIKE.