ANYELEMENT only matches scalar types. I don't think we have any support for accepting an arbitrary row type as a function argument. There's been some speculation about allowing RECORD to do that, but it's not done.
OK, that clears it up. RECORD would actually do nicely. Right now I'll be forced to pass varchar/text arrays which can potentially lead to type conversion issues.
Peter