Inline forward() function.

Because it's by far the most frequently called function if a program is large
enough to run GC.
Add -O2 compiler flag.