Fix incorrect forks heading in related resources docs
Fix Compound element not returning a value

This change adds a missing return statement to the Compound.value()
method, which caused no value to be returned unless an explicit value
or value function had been set.

I also added some doctests for basic usage of the Compound element,
which would have failed for this bug.

Resolves #1.