Issue #4 - fix accessing reference metadata for inherited classes