Fix calling methods on struct pointers

Fixes bug 686190