Implement nested document handling.
Version bump: 0.3.0.