Ensure lists are not saved with non-scalars in verify_vars

Hopefully now Close #4222