Implement `vim_get_option` API function

The `get_option_value_strict` function from the upstream source was
reintegrated for this.