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

No other cases of len(var_type_coord) found.

Fixes: https://github.com/SciTools/iris/pull/349