Make sure record data is clonable before sending it

Fixes #101