Makes delite/theme layersMap reference the relative mid of the layer instead of the complete path.

Similar to c529a86926468907863efd5115d7fa708e034aa7 but for delite/theme.