fix ikfast_generator imaginary numbers bug, fix more degenerate case handling in ikfast