[#6585] added test to check that noting is lost from the bound object when using nested collections