Add an ability to pass function into schema options

You couldn't pass function into schema options before, because underscore
templates were just using toString on those function, without calling
them.

Now we use _.result to call those function if necessary