Fix delete with any serialization

Fixes #968