adds extra arguments to is_active_trail and active_trail_nodes methods

Please check if the additional arguments in is_active_trail and active_trail_nodes makes sense or it is just complicating it ?