Extended array, hash and mongoid_criteria to iterate using as_json_partial.