Fix issue #140: _recurse_q crashes when actually recursing. It now properly keeps track of returned new_q's and longjoins.