Bootstrap inference and diagnostics in state space models: With applications to dynamic macro models. (4th October 2021)