Enable resource's afterQuery to call the parent afterQuery

See description in types/Resource.ls, where the `processAsType`
property is explained.