Fix nasty bug with numpy indexing in state validation if state is a list