Raise errors appropriate with respect to call/pcall semantics when invalid
parameters types or number are passed