Add factory function for TypeTuple
Use factory functions instead of calling constructors from the glue layer
Use factory functions to create arrays from the glue layer