Fixed historic 'length' spelling mistakes

These mistakes were present in the old SVN version, despite having an issue raised about it.