add min/max to block definitions

Also prevents numberic fields from having non-numeric or otherwise invalid values