Issue #3271894 by lhridley: StreamWrapperInterface return types for realpath() and dirname() are inconsistent with documented use and intention
Closes #3271894