Fix StackTrace::LocatePcInTrace, add more unit tests for generic StackTrace