implement layer attribute statistics
update fieldname
Merge pull request #763 from tomkralidis/stats-master

implement layer attribute statistics