Fixes and improvements to palettes and LinearColorMapper

issues: fixes #1545
all nice catches... :+1: