Check for geometries type instead of `instanceof`

And that makes me spot a bug with `MultiPoint`, fixed with this PR.