Added `--template/-t` parameter to `function create` that sets the template type used for the created function. Accepted values are `function`, `endpoint` and `event` and behave exactly the same as when entered through the interactive prompt.
serverless function run
toObjectPopulated(options)