Add filter type to state_output

I don't know how to resolve the boolean parsing thing, but it does work and it serves a good purpose.