Fix datatypes for bug 503
empty tuples and records