bl_blendfile_io & bl_blendfile_liblink shared a filename, which could make these tests fail.
BKE_fcurve_active_keyframe_index()