Allowed validator for integer type

Use 'allowed' field for integer just like for string.