Automatically generate AdH functions when needed
In many places, AdH requires function to be specified even when the value is constant. Previously, users had to manually generate functions in their attributes for this. Now they can enter constant values in ModelBuilder, and the export logic will create functions ad hoc. Also minor template updates.