Thanks for pointing that out.
Seems they've changed it from the Dom2 days, or my memory is playing false. I made a fixed version that removes the comments from inside the #selectmonster - #end sequence and places them right before #selectnmonster so you can still tell immediately what unit the modification affects.
Damn, still does not work! No, I did not test, but apparently Dom3 mods are a lot more particular about what kind of comments they allow than Dom2 mods. I'll test this out and fix it. It worked right fine when it did not have any comment lines at all.