Rewrote MetaDict to subclass defaultdict.

This speeds up and simplifies __getattr__ and __setattr__. This
optimization is useful for graphs with many lanes, because meta
information is accessed so often.