[Truffle] - Predefined global $~ raises an error if assigned an object not nil or instanceof MatchData