Parser: allow function types as receiver type for function

Update outdated parser tests for function types
Minor: fix parser error message