Add tests for issue #770
Fix #770.

Add optional else case to {{#with}}.
Merge branch 'pr/866' into devel