Patch for https://github.com/ocpsoft/rewrite/issues/117
Test case for https://github.com/ocpsoft/rewrite/issues/117
Merge pull request #118 from fabmars/master

Patch + test for https://github.com/ocpsoft/rewrite/issues/117