Add R.has and R.hasIn functions and tests