add more isreadable/iswriteable/isreadonly functions
Merge pull request #3872 from stevengj/readwritable

add more isreadable/iswriteable/isreadonly functions