Add validation of order of imports/exports.