Add a formatDuration function to the view helpers.
Make $in and $nin work for non arrays too.