Merge pull request #131 from twogee/getref

Another getCheckedRef() refactoring