Fixed a small buglet, if using with_items with yum and so on, only optimize the package list if the package list is all strings