Sane scoping of function/variable attributes
