Merged patch (w/ tests, yay!) from Daniel P. Risse RT#37864
Mark upstream issues as resolved and restore (for a while) R::XS support
Merge branch 'master' of https://github.com/sanko/readonly