Fixed bug in assert when set_var_occurrences is used. Need to traverse the
attributes of an attributed variable to cound variables occurring there as well.
Authored by: dwarren 2013-02-15
Parent: [r7723]
Child: [r7725]