Fixes #218: changed MetadataExtension in order to get the subject attrib...

...ute of derived and base classes