As a str is a sequence, the checks were not granular enough and would allow lists or strings, when only lists were valid.