Fixes minor discrepancies between the /hierarchy endpoint described in MSC2946 and the implementation. Note that the changes impact the stable and unstable /hierarchy and unstable /spaces endpoints for both client and federation APIs.
synapse.appservice
outlier
synapse.metrics
get_json
ModuleApi.looping_background_call
get_current_events_token
synapse/