Additional fixes for #3396

Note that function "const"ness is part of the signature, so
after making ClassAd::IsAttributeDirty() const, we need to
add a non-const wrapper for backward compatbility.