Fix a bug that was causing variable declarations to be identified as definitions