More support for void return values
Remove deprecation of class<T> version, still convenient to use.