Implemented most scalar types in value decoder.