Fixed unserialization bug with nested objects