Shell Fixes

Fixed: The serialization test does now work.
Fixed: The shell object can now derive its session.