I have a pull request outstanding for a long time now. This is because of this bug that I had to really analyze.
I believe this bug is in 2.0.0, and simply has a test now. Here's a description of the bug. I did it on the wiki because I needed to draw pictures. https://cwiki.apache.org/confluence/display/DAFFODIL/A+Subtle+Bit-Order+Problem+for+Unparsing I'd appreciate thought and suggestions on how to fix this issue. There are a couple of possible ideas at the bottom of the page, but I'm not yet sure they work. Once we have a fix figured out, I plan to morph this wiki page into a description of how the unparser works with its stream-splitting technique.
