Erling Haaland scored a hat-trick, but Bochum won the day in a seven-goal thriller with Borussia Dortmund.