Support `type: Class` filters in hit-testing code too.
Implement tests for hit-testing compound-paths.
Fix a bug where the selection of compound path children doe not get drawn when the ctx.currentPath optimisation is in use.