Fixes #6633: Smart variables and smart class parameters can not have the same parameter name