Fix #812 - allow to return a struct as a model for a route

Just need to check if return is a value type before testing against null. Fix #812.
Then, you can use embedded JsonSerializer or JSON.NET one without any problem.
Thanks
I'm wondering if this test is in the right place? Are you trying to test that the negotiator serialises structs?