Properly export DuplexWrapper

It seems like this was intended to be exported, so I guess this is a bug, rather than a feature.