Save compile cycles by having Generator use recently introduced compile_to() method.

Simple change to actually use compile_to() method that was introduced couple days back.