[module] Improve exception reporting
[buffer] Add several parameter range checks for fill()
[buffer] Implement copy() method