fix(ipc): sanitize window params to prevent serialization crash
The window-list IPC handler was passing raw params objects which could
contain non-serializable values (functions, native objects, circular
refs). V8's ValueSerializer would crash with SIGSEGV when trying to
serialize these.
Now only primitive types and arrays of primitives are included in the
response.