fixes #367 - we need to replace imports in the code buffer, not just in the AST

Review URL: https://chromiumcodereview.appspot.com//12300039