Fix correct config merge for array values (fixes #806)