Fixed longstanding bug at only showing the most recent stack trace for other errors
Handle orphaned amendment
whitespace
Another edge case reference parsing bug