Codegen: "cast" hierarchy type to base hierarchy type
Codegen call to Object#to_s from hierarchy type
Call Object#to_s from nilable type
Added pending spec