splitting params: ignoring commas inside array brackets