fix funky flowing for nested maps/lists

add regression test