Pack geometries into an array when possible before passing to a web worker. Unpack when necessary of the web worker.