Added States.requireNonNull, closes #36.