COSMIT refactor random forests

Very little subclass-specific stuff left in base classes.

Also fix faulty import in forest tests.