cadef.coffee: get pointer by ref.refType()