Fixed dirtying on setAttributes and added dirtying on defineSetter