Verify geometry type and clean up appropriately

Make sure each geom is of type LINESTRING or MULTILINESTRING and fail if
not; delete the nodes and edges table in this case.