Remove explicit calls to `to_hal_state()`

The `Resource#add_state` method will now generically accept anything
that implements `ToHalState` trait.