Fix support for storing references to preexisting shared variables.
Update Tied documentation.
More doc fixes.