Description:
Issue: Leaf throws a fatal error when Content is passed in as context in req.view.render(name: ,context: ) instead of a dictionary.
Reproduction
I am using Leaf 4.0.0.
I have saved a few Planet objects in my postgresSQL database using Fluent. Planet has a number of properties, including one called "name" (see Vapor Fluent documentation). I was attempting to make a database call using Fluent and display the output as a list on a website using Leaf.
This is my route:

I passed in "planets" as context, which resulted in the following fatal error when I tried to access the route:


this issue was fixed when i passed ["planets":planets] as the context.
Expected Behavior
Blank page should be displayed, instead of throwing a fatal error.
Environment
- Vapor Framework version: 4.0.0
- Vapor Toolbox version: (unknown)
- OS version: OSX 10.15.7
Additional context
Raising this as an issue as requested by 0xTim