fixed regression about empty parameters
added debug message about parameters when invoking methods. Also added a warning if the number of supplied parameters is not exactly the same as expected