Added zmalloc from redis in order to support different allocators

There's still a failing test that I can't track.
Care to help?