Addition of magic function __set_state

Zend Framework 2 creates a module config cache when directed through
application.config.php. That file changes the factories section to
instantiate factories through the magic method __set_state. Not having
it causes the cache to fail because the affected classes do not have
this static method.