Fix unpacking of tuple inside function.