Add additional template functions

closest, coalesce, first, groupByKeys and dir
Update 0.3.6 links