 			if (@_context.entities[type])
 				_.extend @_context.entities[type].Constructor.prototype, extend.prototype
 		
-
 		# Return the canonical memory reference of the entity.
 		intern: (entity, updateOnIntern) ->
 			updateOnIntern = !!updateOnIntern || @settings.updateOnIntern
 
 			if (entity.length && ! entity._type)
 				#Array-like
-				q = entity.length
-				for i in [0..q]
-					entity[i] = @intern(entity[i], updateOnIntern)
-				return entity
-
-			ret
+				entities = (@intern(ent, updateOnIntern) for ent in entity)
+				return entities
+
 			if (updateOnIntern)
 				#Merge the given entity into the stored entity.
 				ret = @_instances[entity._type()][entity.id()] || entity


				# Get this entity's ID.
				id: (full) ->
					return (full && "#{@_type()}/" || "") + @[definition.key]()

				# Find the status of an entity.
				_status: () ->


			for _spec in spec
				#Add the queries
				_type = if (_spec._type instanceof Function) then _spec._type() else _spec._type
				def = @definition(_type)
				id = _spec[def.key]

