I am not sure. I don't have time to further look at this, and it can not be merged in the current state.

If yo think it is a bug can you work around it somehow in the test or file an issue with http://dartlang.org and add link here for reference.