[#2177] Add ResultQuery.intern() and Result.intern() for string
interning in result sets