Take 2: Fix issue #561 (bogus "Invalid Param name" error)

First attempt was both broken and ill-conceived.
Unregistered Parameters won't show up when enumerating Params, and thus also won't show up in the signature of the generated function... with an exception for "__user_context", which is special cased.