Validate lengths and standardize names of parameters

Internal variable names did not always match the advertised setter name.
This came up when I added validation to the setter methods, which now warn
if a value will be truncated in the output.