Added coalesce template fn for datum.