Added support for Ruby types into collections.