Raise AttributeError on immutability violations