isStrict fixes, add tests, improve forKeys