Proposed fix; simply test if the target bean type is a list, and create it based on the list of beans found