Changed: Now the array returned from Stack_ToArray() is the same order as on the stack.