extensionSystem: Check metadata types
We currently check that an extension provides required metadata properties, but then assume that all properties have the expected type.
It turns out that this is putting too much trust in extensions, so add an appropriate check.
Related: #5347 (closed)
Edited by Florian Müllner