Add test for showing RawSerializeFn behavior of types.