set: Improve diagnostics for CACHE mode Improve `set()` diagnostics to be more specific than given invalid arguments for CACHE mode