fix issue 658 - struct pointers in with()
Merge pull request #2419 from hpohl/658

[enh] fix issue 658 - struct pointers in with()