Don't ignore default options in the view constructor when it's a function.

Fixed #818