[Matrix]: fix a bug in casting type of scalar variables.
[Matrix]: fix a bug in casting type of scalar variables.

icoming/FlashX,flashxio/FlashX,icoming/FlashX,flashxio/FlashX,flashxio/FlashX,flashxio/FlashX,icoming/FlashX,icoming/FlashX,flashxio/FlashX,icoming/FlashX,flashxio/FlashX