Add rx.flatten

Closes #8