Fix test-conf string to integer conversion.

The test-conf build_pattern attempted to convert known constant strings
into integer values. However, it did so by always converting the string
value to an integer if possible and then complaining if the key wasn't
of the expected type. This lead to error messages on "style": "Regular"
since "Regular" was recognized as "weight".

Instead, only attempt conversion from string to integer if the key is
the name of an object which can take an integer type. This eliminates
the spurious non-fatal errors reported when parsing
test-90-synthetic.json.

This also fixes an issue where the created value was given the type of
the object found, but the integer field was assigned. Instead, check
that the object type can take an integer and always set the value type
to integer.
10 jobs for fix_test_conf_string_to_int in 5 minutes and 42 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Build
passed #6209817
gst-macos-10.15
meson macos

00:03:16

passed #6209814
meson-mingw-w64-build

00:03:44

manual #6209818
docker windows 1809 allowed to fail manual
meson msys2
passed #6209812
meson-shared-build

00:03:55

passed #6209813
meson-static-build

00:05:17

passed #6209815
docker windows 1809
meson vs2017 amd64

00:01:20

passed #6209816
docker windows 1809
meson vs2017 x86

00:01:25

passed #6209811
mingw-build

00:05:41

passed #6209809
shared-build

00:05:23

passed #6209810
static-build

00:04:19