Bug fix in bean plot visualization

User can now choose to display mean or median in the bean plot and the
figure legend template indicates correctly which one is shown.