Add Contao core to require-dev.
Add unit tests to ensure the composer.json will not get updated for type contao-module.
Fix bug that composer.json will be altered even when root package is of type contao-module.