Avoid duplicate lookup for field index in traversal test