fix some errors in key export format
fix some errors in key export format

- empirically, we don't acatually wrap the array in an object
- fix an incorrect type

matrix-org/matrix-doc,matrix-org/matrix-doc,matrix-org/matrix-doc,matrix-org/matrix-doc