Here's an version of the patch with a bunch of minor changes:
And here it really is, this time with an attachment...
Thanks a lot. I'm going to start rerunning the tests now.
First bunch of test results will be available soon (tests running and results processing take some time). While there is a patch with few small bugfixes.