RangeAttribute and 16-bit signed integer types compatibility

This pull request resolves #280.