Pass arguments to `options.defaultValue` if a function.
Merge pull request #1694 from rjackson/pass-arguments-to-defaultValue

Pass arguments to `options.defaultValue` if a function.