Optimize metamethods inheritance resolving

* a table of metamethods that should be inherited is now stored in
  SWIG registry table. It optimizes memory usage.