using a function for dateTimeFormat model attribute.
Fixed ValueStack handling for method bodies. (within expression
evaluation, the thread local value stack can always be used)