Typecasting on function parameters. Addition asserts.
FunctionCall's mFunction changed to mFunctionPrototype.

A few extra log messages.