Fixed unwrapping of wrapped Ruby classes