Fix HAL-505: Transient beans cause JSON encoding exception