core: fix encoded value parser for signed and floating point numbers