Update struct dereferences to cope with pointers as well.
Ensure that parameter types are declared as well.
Add a test case for pairs.
Merge pull request #69 from pjonsson/bugfixes2

Update struct dereferences to cope with pointers as well.