Added support for text/template function maps.