Holger Rune battled leg cramps and Miomir Kecmanovic across five sets to earn his spot in the final 16 at the Australian Open.