Fixes and cleanup

Small issues and old code in the part of the validator that reads the
entropy coded data in a 0xFFDA segment.