helper/schema: DefaultFunc for dynamic defaults

/cc @c4milo - This might be useful to you as well.