Changes to APLCore:run

Changed/Added fix for checking listExcludeDuplicates is set. Also trying
to fix a merge conflict.