state api: Make *_has_new_state() usable without a nebstruct type
This patch make the two functions accept the identifier(s) for their
respective type along with the state and state_type variables, making
it easier to use them from random places (ie, showlog).
This also speeds up execution very slightly. Possibly because it no
longer has to do quite so many memory offset lookups when checking the
state of objects.
Naturally, we update the callers accordingly.
Signed-off-by: Andreas Ericsson <ae@op5.se>