Use getIkType() in getPositionIK()

getPositionIK() was broken since IKTYPE_TRANSFORM_6D is always undefined. See also  #12