Use AnyVal to optimize TailCalls.scala 

Now there is no more indirect reference.