Use matrix encoding for Query.Request.Entropy

DO NOT MERGE - For review only
Merge the downstream https://github.com/priorknowledge/loom/pull/78