Fixed some additional issues with duplicate permalinks in different sites. See issue #182.