* Fixed handling of metadata fields when rearranging or changing types.
* Cleaned up code in pwdmgrOverlay.js to eliminate warnings and make the
  script strict-mode compliant.