Validate the common arguments shared by replace_na_*() functions.
Source: R/ensure.R
ensure_replace_na_args.RdAborts on a non-numeric x, min_gap < 1, or max_gap < min_gap.
Used at the start of every replace_na_*() function so the same
messages and behaviour apply consistently when those functions are
called directly (rather than via replace_na()).