Fixes #1817, use serializer from AtmosphereResource if available