Don't crash opwig if an exception occurs when parsing a JSON file.
Add const method support.
Fix tests.
Implement a test that uses const overload, and fix code so it passes.