Corrected len(coord) to len(coord.points) and added test for relevant code path. No other cases of len(var_type_coord) found with grep -R "len("