I'll see if I can build a test-case for this and add it to the test suite.
Should help fix the bug if it's there and keep us from making the same errors again.
I added the test case and yep, it seems like something is broken. I'll start looking into it.
Ok, I fixed that bug. Change has been commited to the CVS head.
Thanks for the bug report!