Add checks for illegal dependencies and vocabulary exports.