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