And the bug is obviously in the generate script, as it just does pattern matching without understanding the surrounding code. I understand it would be almost impossible to get this right from code alone, but as the generate script already does fixup its autodetected dependencies it could also fixup this one. BTW, is there any repository where the generate script is maintained?