Change mp_check return type from bool to int

Also fix mp_check_bool and mp_check_int