Improve error handling in MPL
Improves error handling upon access of wrong type. For the extra information on the medium/phase/component the definition scale was moved to the property.
Closes #2933 (closed) Review commit-wise.
-
Feature description was added to the changelog
TODO:
-
Update other properties beside the Constant.