[Truffle] Mock enumerator by returning an array in Fixnum#times.
[Truffle] Fix exception for return at the top level of a thread.