Add test to invoke ByRef parameters

This test invokes ByRef parameters in a way that exercises calling out to native code and then back through managed to verify the marshaling pipeline.