General case of #256
It would be better to enforce these constraints when the Module or Query handler is built, rather than just when makeApp is called.
Based on my very light reading, it looks like at a minimum:
- A
StoreLeaf query of type Map requires QueryData on the Key type.
- A general
Leaf query requires HasCodec on the type being returned. (perhaps this could be enforced through a constraint in the QueryResult type?)