Detect duplicate vars in module scope