Pages middleware now inserts proper model type into response context