Updated type inheritance to map Perl -> C++