fixing CHECK_RANGE_EQUAL

if the container passed to CHECK_RANGE_EQUAL is larger than the
expected range, the copy writes over the the boundaries of the
created buffer _actual.
Merge pull request #349 from sschaetz/develop

fixing CHECK_RANGE_EQUAL