Fixes and improvements to palettes and LinearColorMapper

issues: fixes #1545
Technically not necessary in the presence of the docstring. I'm not sure which way I prefer it.