Store default values of RPC arguments in the corresponding type instead of a string. The value is then serialized when the help output is needed.
This enables checking default value type againts argument type.
This is a backport of core#21679
Depends on D14405