Add `array-contains` function

Add a `array-contains` shell function, which checks whether its first
argument is contained in the list of its other arguments.
Add `REPORTTIME_LENGTHY_COMMANDS`

Extend the command running-time reporting system to use an alternate
value of `REPORTTIME`, `$REPORTTIME_LENGTHY`, for commands in a
`REPORTTIME_LENGTHY_COMMANDS` array parameter.