AstGen: fix "missing function name" error
AstGen: fix "missing function name" error

scanDecls() made an incorrect assumption about all declarations having
function names. The compile error for "missing function name" needed to
go into scanDecls().

andrewrk/zig,andrewrk/zig