handling unsigned byte data correctly in color palette
(cherry-picked from 1a139d7)
Merge branch 'master' of github.com:bcdev/beam