Fix #516: allow setting and removing attributes in object mode
Merge pull request #639 from pitrou/setattr_delattr

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