Revert "Fail if dictionary uses invalid keys" and "Support newer “json” module"