INT-3290 ByteArraySingleTerminatorSerializer does not support multiple subsequent terminators.

JIRA: https://jira.springsource.org/browse/INT-3290

* Added unit test to verify bug.
* Fixed bug.