bugfix: add toObject so Blend can be serialized