Fix some typos
Empty strings as `''` instead of `[]`

This is clearer as to which type everything should be. Also, in Octave
this used to raise warnings.
Extract `opts_append_userdefined`

Include user-defined options.
Merge branch 'cosmeticChanges'