Added getInstances() which returns a list of all Instance objects for the specified named layer.