Removed buggy below setting for legend, added word wrapping to legend, closes #1056
fix reference to filter list breaking
Fix for queries and filters losing references, closes #1089