[BUGFIX] Do not serialize singleton properties on __sleep
Serializing a Flow managed object will not serialize injected
properties as they will be reinjected anyway. This now works
consistently for all injections.
This also is a workaround for the PHP bug:
As the only reason we serialize an SplObjectStorage curently is
that we serialize Logger instances.
Releases: master, 2.1