make waterml IOs picklable