fix(core): prevent sql exception when metastring is interpreted as very ...

...large number in egef_metadata

Fixes #7009
If the value's numeric: `$value = (0 + $pair['value']);` It means octal numbers will be interpreted incorrectly, but this seems acceptable to me.