Merge pull request #111 from jemc/master

Problem: Class API models cannot generate callback typedefs
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