Related nodes (rebased onto dev_4_4)



This is the same as gh-1765 but rebased onto dev_4_4.

----

Annotation of Well sample error was due to error when setting the related nodes
see https://trac.openmicroscopy.org.uk/ome/ticket/11297

Related issue also fixed https://trac.openmicroscopy.org.uk/ome/ticket/10308