Avoid constant crash between Serialization Array, Hash and ruby types