Add the res folder enforcement to "values" and add check

Add the missing res directory structure enforcing to the values directory. Just for consistency. And add a check at construction time to see if the resource directory passed ends in res. otherwise it will silently pass and fail much later when the resource are tried to be read.