`Extract#as` should not mutate the receiver

Fixes https://github.com/rails/rails/issues/16913
Merge pull request #311 from tamird/master

`Extract#as` should not mutate the receiver