Pauline Hanson has compared her experience of being jailed in 2003 for electoral fraud to that of the trial faced by alleged war criminal Ben Roberts-Smith.