added datatypes support for tuples and tree