Legend design tweaks. Closes #727