[Java]: Simplified get and put bytes methods on UnsafeBuffer to be precise about copy lengths and bounds checking.