trees string or array now handled with generic, and tested method `getAsBoolOrArr` -fixes issue where trees given as array in node environment break options