LPS-39097 Expand DynamicQuery functionality in AlloyServiceInvoker

Had trouble workflowing the ticket again :/