added arg_type to script arg to enable checking type and coercion
added ability for serialization to select how to name the key