Fixed void-related test, added support for optionally typed reference parameters.