Yesterday, I woke up during the night, and caught myself thinking of GetUnitTypeId(whichUnit) too much in an if-statement - I could even partially see the code in my mind. I need to stop thinking of JASS prior to going to bed, or maybe it was my brain playing pranks on me on April fools' day.
Novamente, muito obrigado!