add format from vars in template also for other types than string