Enable more validations, fix various warnings.