v3.4.9: Add range check in resize (#71)
### Why? If a user inputs size that's out of range for `u16` type, it will throw an `Failed to convert u32 to u16` error. ### What changed - Check size input and throw a more detailed error when it is out of range.