clean up turtle parser a bit, fix repeat subjects in trig parser

this fixes the bug reporting in #317

also removed redundant trig test.