Improve import logic to reconstruct facts and thus correctly apply all relations.
Add a test for it.
Merge pull request #2 from monomon/master

Improve import logic to reconstruct facts and thus correctly apply all relations