Fix support for caching of templates in __DATA__ section