Implemented what I wanted in #36

(It's the first time I try do something with the Zend-Engine...)

What I've done is simple: recursing through the object-properties and arrays. Every resource and incomplete or not copyable object (like mysqli) is replaced by a NULL. It's the easiest way to share simple arrays (and even complex types (most objects and deep arrays)) and prevent segfaults in the same time.