Fix #516: allow setting and removing attributes in object mode