api,server: slice are already refs, no need to return ptr
Merge pull request #1061 from proppy/fix-slices-ref

api,server: slice are already refs, no need to return ptr