Add proper type check for malformed function definition.

  If not making the proper check it may cast an otag_t to an oast_t
if the user forgets to specify an argument name in a function definition,
and then either crash or print garbage.
Prevent error of referencing a class method as class data.