Improve handling of Pyramid includes in themes: don't repeat duplicated includes, relativeize dotted paths, and support multiple includes