Revert "Temporarily remove the z_get_subtrees_by_index RPC method" This reverts commit 30d049ee9f43ef03e89331b6bd8a1d7243a2ac40.