Add convenient method for checking if object is MatrixProject

This is useful for jelly pages where instanceof operator doesn't work.
Merge pull request #834 from vjuranek/instanceofMatrix

Add convenience method for checking if object is MatrixProject