[MWF] Fix AutoSize behavior of FlowLayoutPanel (#2912)

A FlowLayoutPanel that has AutoSize set needs to resize if the contained controls wrap. This patch fixes bug #2912 and also adds unit tests that demonstrate the problem.