Improve member function `slice`

- Add @trusted attribute
- Change parameter types `uint` to `size_t`
- Limit the range of fields by template constraint
Optimize opAssign for rvalue assignment