Fixes and improvements to palettes and LinearColorMapper

issues: fixes #1545
I know I prefer the `pass`, jeje... because it is technically not necessary, but "idiomatically" requested... in any case, it is just a minimal detail... and probably it doesn't deserve more time than these two minutes we spent talking about this :wink: