use GetIkType() instead of #defines

This removes the need to manually specify the IK type using `#define
IKTYPE_...` and closes #5.