_availableStates bug fixed

It was possible to add duplicate states and also states that only had stateTo were not included...

Signed-off-by: Frode Marton Meling <fm@saltship.com>