Better sanitize numeric values in Model
Merge pull request #1851 from hissy/model

Error on refreshing some block types