Hi! +1 for the idea of the patch. Consider it useful.
I looked at the patch set and don't see any obvious defects. It applies without any problems and looks pretty good for me. Only one thing is left to do. Add basic tests for the added functionality to make it committable. For example, as in the mentioned 1eff8279d494b9. -- Best regards, Maxim Orlov.