:resource and :page now accept a custom context

Addresses https://github.com/RestPack/restpack_serializer/issues/49