Fixed several bugs relating to one-way trellis references.