[-] CORE : Helper Category Tree categories selected

Removes the int cast of the categories ids list (the cast removes the values after to the comma). Use of array_map and intval instead.
With this fix, the subtotal of selected categories is now correct.