fix dictionary url resolving in template makeDeclaration