Fix for counting changed relations.
Get complete closures to work and fixed tests.
Fixed bug which didn't add BEFORE relations.
Found and fixed the reason why the number of changes by the global model was wrong.
Change in architecture in order to distinguish between relations and relations with closures and inverses.