ST_Polygon2DFromWKB is documented as "Deserialize a POLYGON_2D from a WKB encoded blob", but its signature (both in docs and in code) is GEOMETRY ST_Polygon2DFromWKB (polygon POLYGON_2D).
That seems incorrect, since ST_GeomFromWKB is GEOMETRY ST_GeomFromWKB (wkb WKB_BLOB|BLOB)?
The same stands for ST_LineString2DFromWKB and ST_Point2DFromWKB.
These seem to have been added in eb55c2d but I don't see any tests or examples for them...