Fix a bug in reference documentation generation.
Do not allow scalar subexpressions to refer to implicitly vectorized functions.
Mention scalar parameters/subexpressions in the user documentation.