Added declarations and definitions for "tuple" type.