add reference from field codec to struct codec