Fix issue #253.

Use synchronous evaluation to get the entire expansion before emitting into expansion buffer.