fix length calc for 2-element vectors (fixes bug that was preventing max length logic for line join miters)