allow the Closure version of the `private` tag to specify a type (#730)