Security: Check integer overflow in marquise_send_extended.

Also unrelated simplifications/cleanup.