api,server: slice are already refs, no need to return ptr Upstream-commit: 5e029f760000be547350e520302c5811d85fe525 Component: engine