Simplified further and set AFPChain block values.
Fixed original test case.
Made splitBlocksByTopology public.