Support nested relations

Closes #11
Release v1.2.0