which would have caught a type mismatch in https://github.com/status-im/nim-serialization/pull/10/files close is defined for ByteStreamVar but not ByteStream