make sure that bytearray methods return a new bytearray even if there is no change

Fixes #4348
Reviewed by Brett
3 files changed