Fixed bug in TupleBase.toArray() that made it always return null.