core: reverse!: Handle empty list.