Issue 3882: Use cast(void) on calls to assumeSafeAppend

This should make https://github.com/D-Programming-Language/dmd/pull/3342 compile Phobos without warnings.