Add ability to verify container before compile.
Add temporary fix for DoctrineBundle

Thanks to @matthiasnoback
Merge pull request #1337 from drak/validation

Add ability to verify container before compile.