ENH: more checks in check_params