Fixing serialization for Symfony Profiler

Now that Solarium passes in the logger, the serialize() function in the Symfony profiler attempts to serialize the entire logger in the object.  This causes errors when trying to serialize closures from the logger.

Solved by implementing the \Serializable interface and explicitly passing $this->data in the serialize() function.  Also added the declaration/initialization of $this->data.