Layout specification and discovery should follow the same behavior as partials

Fixes #1047
We use the value of `pageName` as part of an exception. Changing the value of `pageName` would make it harder for the user to identity what parameter they were passing in that was incorrect.