[MAT-387] Fix RTTI by using constructors of subclasses