Thank you for looking into this and posting a fix for the problem!
After looking at the code i think i messed up some lines of code, specifically:
TY_Game_Map_Update.call(this, arguments); This needs to be this instead -> TY_Game_Map_Update.call(this, ...arguments);
TY_Game_Map_SetupEvents.call(this, arguments); This needs to be this instead -> TY_Game_Map_SetupEvents.call(this, ...arguments);
There's no need to paste the whole original "Game_Map.prototype.update" contents since that's what this line of code is meant to do "TY_Game_Map_Update.call(this, ...arguments);"