Fortran: fix handling of pointer association operator

Test case contributed by Adam Hirst, thanks.

Closes #1030.