Add model support for dyn_variable attribute.
Add form support for dyn_variable attribute.