[mcs] Add NamespaceExpression to avoid problems with error location for misused namespaces. Fixes #17803