Fix reflection invoke bugs introduced by fix for #484. Fixes issues #529 and #530.
Make generated call methods strict about parameter count.