ik: Add length utility function.
ik[fabrik]: Handle unreachable target case.