wal: move marshaller interface to wal pkg