Add missing isSpecial for Scala.
Add missing isSpecial for SML.
Fix isIdChar for Scala (somewhat).
Fix isIdChar for SML (somewhat).