fix tests

oops! the doctests were not previously being run on that file.
support nested comments

I didn't plan on supporting them, but the machinery I will need in order
to parse import statements happens to do the job.
import declarations

They are more complicated to parse than I expected.