Why are you even trying to parse out the "size" of an SVG, anyway? An SVG has a nominal size that it is created at or exported at, but it's irrelevant in most cases, since the whole point is that it can be rendered (losslessly) at any size anyway
Also, is SplObjectStorage (and WeakMap) the only types that can use an Enum member as a key?