adjust the source location on metafunction def-before-use errors

closes PR 14289