duplicate IDs are now supported in different trees - closes #580