Allow setting function as default value in model.