(Re-)activated 'shared' clones.

Shared now works as a special case of references.

Fixed test for JENKINS-20153