NXP-13826: fix usage of arrays for proper escaping of options