check identifiers for function names in sema

this should be replaced by proper multitype scoping soon.
fix up some ast parameter types