Fix uniqueValues for virtual field
Sanity checks in add attribute dialog
Request geometry when virtual field expression require so
Some cleanup