SourceCodeClassifier checks open declarations in nested modules for redundancy

add tests