fix getAnyPMethod to not destroy the given array

This was causing some weird errors, namely checkImpl() failing when it
shouldn't have because its parameters were destroyed

This fixes some of the problems in issue #49, but does not solve it