Corrected len(coord) to len(coord.points) and added test

No other cases of len(var_type_coord) found.