Add mod and type parameter to get_mod_log.
Raise UserWarning when comparing 2 ModActions.