Add test for cyclical require

See #8
Handle cyclical requires

Keep track of which requires have already been parsed and don't parse
them again. Fixes #8.
Merge pull request #9 from parshap/cyclical-requires

Handle cyclical dependencies