Add support for pointer arguments in methods