Inconvenient Content Query Web Part slots and CQWP’s extensibility

SharePoint 2010 Content Query Web Parts ships with the Slots capability which simplifies working with custom Item Styles. Unfortunately it turns out that Slots may be broken when working with extended CQWPs. So what is the problem exactly and, what’s more important, how can you solve it?