Add import: option to doctests. It is false by default.
Merge pull request #931 from yrashk/doctest-import

Add import: option to doctests