fix intra-pred-mode coding
encode whole sequences
fix flushing CABAC
search candidate intra-pred-modes first