Quest optimizer improvements, compute sidequest lengths