galaxys2: advanced settings: cleanup arrays

Change-Id: I3ed87edd16fbf957a18601fcc11c4b434830c77b