Fix bytes which should be bytearray
Catch incorrect palette sizes
Make bytePalette read-only buffer
Merge pull request #325 from manisandro/bytearray

Fix bytes which should be bytearray