@Exerqtor From the looks of what you are doing, the only thing var FilamentType is being used for is an M118 message. It's not actually affecting the filament that is being loaded, because you need that input in the M701 S"filament" command. Unless you are using this variable in other places.
Your other option would be to set the variable value in your filament specific start gcode.
Also, apparently M703 does not work in load.g, from what I have been told.