Fix some undefined behaviour in the Curve448 code