Fix and extend error reporting when source location is unknown.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Fail with error if reserved names have been used.

Reserved names could be used accidentally in user sources or in
internal headers.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>