Fix #314 in `MethodCall` add check dynamic types

See #314 
Add Variable::getLastType to matching current variable.