Add test to try to replicate a reported bug at #503.

The test follows the pattern described in the original mailing list issue here: https://groups.google.com/forum/#!topic/gremlin-users/-fnfzP3Gw4k It passes without any issue, so I'm not sure what the problem is.
Merge remote-tracking branch 'origin/master'