Implemented caching of "id to class" mapping, uml class types.

Added test for connections parsing, fixed test for generalization.