Expand value[x] to all supported types. Fix some JSON instantiations.

Some substituted property names, such as "klass" and "proto", were incorrectly looking for their substituted names in JSON dictionaries instead of their true values.