Add wrap and unwrap

This branch adds `Relation#wrap` and `Relation#unwrap`.