Avro-ify the sample command in the case that a Spec is provided.
Refactor output parameter handling for vectors and records