remove some old repo compat code
change back to the old expand_matrix behaviour
always make sure job state is a string before comparing

don't love this as it shows sometimes it is a symbol and sometimes it
is a string, need to dive in deeper later
use state and not result, which is now gone gone gone