[FIX,API] Adjusting parameter order of _getLengthInRef().