correctly handle declaration merging