Fix doctests, support allowing nil/blank values to skip validation