pub fn encode_frame(id: &Hash, row: &FrameRow) -> Result<Value, StoreError>
Encode a frame row: type, optional external base, then the index value.