Added caching of wrapped Ruby classes and modules

Added conversion of returned Ruby classes