Fix sporadic keywords mishighlighting in sql-mode

And add three tests, the third one is testing for this fix.

Inspired by #30.