Closing this one, fixed in GIT head by ioerror.
An updated version of the hack is applied to current GIT. However, dynamic menus still have issues if you do:
Entry = "Testmenu" { Actions = "Dynamic /tmp/getmenu.sh" }
Separator {}
Entry = "Testmenu" { Actions = "Dynamic /tmp/getmenu.sh" }
Entering the menu the second time it only displays Testmenu once instead of twice.
The attached patch fixes the issue on my system but please test it and report any problems or regressions.
Thanks!