Fixed one segfault (line 108).  Test case now triggers the other.  See #10.