core/debugger: Improved stepping mechanism and misc fixes
Otherwise, the addition promotes the returned value to an int instead of keeping it as a u8.