Allow target updates

Allow updating the ```target()``` of a Reference. Test cases to be added in PR #31.