SplObjectStorage implemented getHash in PHP >= 5.4.0. Implement temporary backwards compatability to support control of object hashes so we can easily fetch vertices by data.