adding try/catch blocks to handle tpetra/epetra casting in thyra adapters
Merge branch 'master' into uniform_probability