slot: Added an assertion to check constructor arg types.