turn splines from 3d into 2d using animation nodes
The dimensions is a property of the Curve Data Block not the splines themselves, thus there is no distinction between 2D and 3D for splines.

A 2D curve just ignores the z axis of the spline points and also ignores the tilt and radius of the splines, so you may do that manually if that is your objective.