I have observed issues when trying to pass a datacontainer as a variable name.
"bundle" string => "mybundle";
"" usebundle => report_data("@($(bundle).d)")
This will result in an error
error: List or container parameter '$(bundle).d' not found while constructing scope 'report_data' - use @(scope.variable) in calling reference
List references in methods not expanded when they depend on a variable