in_memory: Store visit types as a list instead of a set
Set objects cannot be serialized by the SWH RPC layer so use a list instead to store visit types as in the elasticsearch backend in order for the search memory backend to be used without errors behind a remote proxy.
Closes #4653 (closed).