Implement table reader for small palette decoder
Optimize a bit
Add more checks
Fix init bug in small palette reader