Support older Vim versions

Use own versions of gettabvar() and getbufvar() with default values.
Fix issue #18.