Slight changes to regexp().

Use inline function form and add type annotations. Also add a link to the
README.
Export sqlreturn and check nargs in registerfunc.
Simplify registerfunc logic.