fix($futureState): allow state lookup by object reference, or by state name

This is really a workaround, because the futurestate->state mapping should happen only once, see #2
closes #61
closes #60