Fix initialisation of protected type variables. Issue #92