It *should* make sense to group by $sqlid, but for remote procedure calls, mrskew v2.1 doesn't group properly by $sqlid. Hence the workaround advice from before. This is scheduled to be fixed in v2.2.
The "#0" is a cursor id that has no SQL associated with it. Normally, it is a cursor id associated with commit processing. It is showing up in your output because of the mrskew v2.1 bug that doesn't map the SQL statement on the RPC CALL line to the call on the RPC EXEC line. I think if you run this command, you'll understand the nature of the bug: