More fixes
- Handle duplicate option due to mismatched case (eg. Baixada vs baixada) (mysql database is case-insensitive but PHP is case-sensitive so when you call OptionValue.create you get duplicate error). Maybe this could be fixed in a better way but for now we log an error and allow the rest of the values to be imported.
- Fix deprecated form->add() function parameters.
- Convert optionvalue get/create/update to API4.