Fixed a bug in dbserialize when handling nested tuples.