Proper method validation when using variables.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Use correct call types when looking up methods.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>