In Nim 1.6, `{.raises: [Defect].}` is no longer necessary. Remove it.
- Remove unnecessary `Defect` references - Remove spurious `SerializationError` references - Remove duplicate `writeValue` template in `keystore.nim`; same implementation already exists a bit further above in same file.