Don’t allow n to be greater than the capacity as it’ll cause a slice ind...

...ex error.

Add huge log line to log input test to cause slice error without slice fix.
Fixes #707.