there are still some bugs to solve when a decl is re-exported but straight-forward cases are handled correctly