Fixes issues with passing arrays instead of Lists.