Added usage of OrdinalAllocator in while statements in compiler.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>