Fixed bug when adding Composite implementations to elements that don't accept strings