[WIP] Object mixins

See #1222.