Minor fixes to EAV class
Added 'modified' flag to EAV_Attribute to prevent saving when it's not necessary