A weak map interface for storing references in the encoding/decoding context.
This interface extends WeakMap to provide type-safe access to stored reference values using coders as keys. It ensures that the correct types are retrieved when accessing stored references.