Added support to join on collection nodes that have different archetype ranges

git-svn-id: svn://svn.openvpms.org/openvpms/framework/branches/1.8-dev@6256 9e4fa352-aafb-0310-9071-df624684024b