[BUG] Redis Storage won't behave correctly after libOptions were set

This is a PR that extends PR https://github.com/zendframework/zf2/pull/4577 and solves issue https://github.com/zendframework/zf2/issues/4576

Because Redis doesn't allow for some reason setting options before connect it required some additional fixing than the PR mentioned earlier. Also added test checking if lib options are working correctly.