add more ikfast checks
fixed ikfast bug with converting pi to rational