Reduce code size of InterfacePtrState
InterfacePtrState is a templated class that gets expanded for every Mojo client,
causing code bloat. By moving the functions that don't depend on the template
parameter out of line we save roughly 900 bytes in safe_json.mojom (on
Linux).
BUG=
597125