Add new attribute to define threshold alarm evaluation interval

Also make sure that this interval is >= than the other metering intervals.
Otherwise alarming doesn't work correctly.
Merge pull request #140 from rhafer/alarm-eval-interval

Add new attribute to define threshold alarm evaluation interval
Prevent accessing eventually unexisting array
Merge pull request #142 from nkrinner/validator-check

Prevent accessing eventually unexisting array