fixed duplicate name checking in declstmt