Fix constructor not being set properly on inheriting from ampersand-state.