Reset emulate call:

- only emulate -L causes options to be restore after function call
- using setopt outside of functions does not reintroduce #342