strict_sample: Strict behaviour for functions with special scalar behaviour
Description
[sample()] and [diag()] behave differently depending on whether their
first argument is a scalar or a function. These shims throw an error
when given a scalar to force you to pick a safer alternative.