js: fixing errors found by testing: encrypt/decrypt
- Key.js: Error code for wrong parameter in createKey should be "PARAM_WRONG"
- Helpers.js: The property openpgpjs-like Objects were checked for in toKeyIdArray was not defined.
- src/permittedOperations.js: updated more expectations and assumptions for the native API
- new Problems:
- There seems to be a message size limit of about 21 MB for nativeMessaging, much lower than the documented 4GB.
- Some bytes are lost with random data in an encrypt-decrypt roundtrip. The culprit is unclear.