Allow custom serialization checker