Layout specification and discovery should follow the same behavior as partials

Fixes #1047
nit: add `<remarks/>` describing exactly when this will be `null`; same for `SearchedLocations`