Merging of fragment import package and required bundle declarations into the host bundle was faulty and could result in a class cast exception. The code was using a map to merge the dependencies, but was using values of an incorrect type. (FELIX-1197)