Fixes and improvements to palettes and LinearColorMapper

issues: fixes #1545
I wouldn't notice this, if I didn't copy this to bokeh-scala, where colors in this form are verified at compile-time. Anyway, it's interesting that only trailing `c` characters were missing.