Fix for #39: Moved detection for DoubleDeclaration from Parser to SA