GetRawMatrix of matrix has been changed as const

lots of situations are getting matrix as const