added method to set numberOfBlocks in all the elements, modified the way legend preview properties are stored: Legend Properties are now added to preview properties of the preview model directly when they're cretaed. This is to ease the property manipulation using inplace editors.