ensuringArgumentIsValidOptionList

Ensures the argument at index is a proper list of write_term/2,3 options, validating each element via ensureTermIsValidOption.

Throws

if it is not a list.

(write_option) if any element is not a valid option shape.