type
the name of the type the variable should have. Can be num/numeric, vec/vector
mat/matrix or fun/function. Can also be s/single, in that case it
must be a vector of length one .
If a vector of type names is given, the variable must be of all types.