The vector tiles currently contain three-dimensional coordinates for LineStrings and Polygons: http://a.tiles.openrailwaymap.org/vector/17/68445/45585.json.
This coordinate is always 0 and not necessary for rendering 2D maps.
It might be that also the objects in the osm2pgsql database have such geometries.