Problem: Ruby bindings do not support "interdependent" classes

Solution: Add the #__ptr and #__ptr_give_ref methods and use them
to pass pointer values from inside ruby objects