Fixed #1439: Extend option overwrites options in the wrong direction.

Extends is an awesome option, but I believe it goes in the wrong direction. If I'm mistaken, please ignore this pull request.