all the optionals into lib/. lib/core.nom and tests/all.nom are no longer needed now.
and fix a lot of latent problems.