Value factory can now create recursive structures. Closes #17.