Added support for assemblies of detectors. Re #5403