add $this->maxDepth to serialize / unserialize
Merge pull request #218 from rothfahl/master

add $this->maxDepth to serialize / unserialize