Revert "Bug fix: unserialize() returns incorrect value (Issue #382)"

This reverts commit 4417241589879f95bd9d9998c74be331a4203ac1.
Bug fix: unserialize() returns incorrect value (Issue #382)