Merge to XFA: Fix subtle issues in opj_skip_from_memory and add unit tests.