Add typehint to optional constructor argument $cause 

This is a port of xp-framework/xp-framework#356 to XP6.