fix for missing competency framework includes

bugfix: replaced union operator with array_merge/array_unique combo to get all course and program objective ids.