Support for DynamicVariable in trait