Fix Multi-Project contamination because of static state.

Fixes #47. The tests are missing, will update soon.