r6545: some notes and experiments on ref ptrs, testing with midl