Fix star mapping, aliasing, and pathing for built layers.

Fixes #17475 (1.9 backport)