After dropping overwriting the file with the content as it is in !3938 (merged) the specific reported errors disappear once more (at least for local testing), only to be replaced by commaNum is not defined and replacing it with Num produces the same class of error.
Also it might just be the late hour speaking but 'troop seems to have been gutted entirely.
I'll attempt back port most of the fixes since then.
That solved it, thanks. @Pregmodder according to my local environment this should be ready to merge as is. Do I really want to know how the code got to be in this state?