Add convenient method for checking if object is MatrixProject

This is useful for jelly pages where instanceof operator doesn't work.