Removing duplicates resources when filtering by context, giving precedence to duplicates with lower indeces.
Version 4.1.13